package wqh.service;

import wqh.domain.Device;

import java.util.List;

/**
 * Created by devts on 2016/9/25.
 */
public interface DeviceService {

    List<Device> findAllRecord();

    List<Device> findRecordByName(String name);

    Device findAllByID(Integer id);

    List<Device> findAllByNameAndIP(String name, Integer ip);

    int insertRecord(Device device);

    int updateRecord(Device device);

    int deleteRecord(Integer id);

    String findNameById(Integer id);

    Device findAllByIp(Integer ip_int);

    List<Device> findByIp(Integer ip);
}
